package com.maretska.java.basic;

import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

import org.junit.Test;

public class ReadLine {
	
	@Test
	public void inputData(){
		int sudut1;
		int sudut2;
		int sudut3;
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		try{
			System.out.println("Masukkan Nilai Sudut 1 : ");
			sudut1 = Integer.parseInt(br.readLine());
			System.out.println("Masukkan Nilai Sudut 2 : ");
			sudut2 = Integer.parseInt(br.readLine());
			System.out.println("Masukkan Nilai Sudut 3 : ");
			sudut3 = Integer.parseInt(br.readLine());
			System.out.println("Maka nilai sudut 1 : " +sudut1);
		}
		catch(IOException ioe){
			System.out.println("SALAH");
		}
	}

}
